package com.songsong.myblog2.mapper;

import com.songsong.myblog2.domain.Categories;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Component;

import java.util.List;

@Mapper
@Component("categoriesMapper")
public interface CategoriesMapper {

    void addCategories(Categories categories);

    Categories selectOne(String categoriesName);

    List<Categories> getCategoriesManagement();

    void categoriesToStop(String categoriesName);

    void categoriesToBegin(String categoriesName);

    void updateCategoriesNum(String categoriesName);

    List<Categories> getCategories();

    int getCategoriesNum();
}
